//
//  ChannelButtonView.m
//  IT爱好者
//
//  Created by dllo on 15/10/14.
//  Copyright © 2015年 Fan. All rights reserved.
//

#import "ChannelButtonView.h"
#import "Header.h"
@implementation ChannelButtonView

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _leftButton = [UIButton buttonWithType:UIButtonTypeSystem];
        _leftButton.frame = CGRectMake(0, 4, 50, 20);
        [_leftButton setTitle:@"热帖" forState:UIControlStateNormal];
        [_leftButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        _leftButton.titleLabel.font = titleSize;
        [self addSubview:_leftButton];
        
        _rightButton = [UIButton buttonWithType:UIButtonTypeSystem];
        _rightButton.frame = CGRectMake(100, 4, 50, 20);//两按钮间50
        [_rightButton setTitle:@"版块" forState:UIControlStateNormal];
        [_rightButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        _rightButton.titleLabel.font = titleSize;
        [self addSubview:_rightButton];
        
        _barView = [[UIView alloc]initWithFrame:CGRectMake(4, 24, 40, 2)];
        _barView.backgroundColor = [UIColor whiteColor];
        _barView.layer.cornerRadius = 1.5;
        [self addSubview:_barView];
        
        
        
        
        
        
        
        
        
        
        
        
    }
    return self;
}







/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
